<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>slot</title>
    <script type="text/javascript" src="../assets/js/vue.js"></script>
</head>
<body>
    <h1>slot</h1>
    <hr>
    <div id="app">
        <pxs>
            <span slot="Url">{{pxsData.Url}}</span>
            <span slot="netName">{{pxsData.netName}}</span>
            <span slot="skill">{{pxsData.skill}}</span>
        </pxs>
    </div>

    <template id="tmp">
        <div>
            <p>站酷地址:<slot name="Url"></slot></p>
            <p>站酷名称:<slot name="netName"></slot></p>
            <p>技术类型:<slot name="skill"></slot></p>
        </div>
    </template>

    <script type="text/javascript">
        var pxs={
            template:'#tmp'
        }
        var app = new Vue({
            el:'#app',
            data:{
                pxsData:{
                    Url:'https://luckpty.zcool.com.cn/',
                    netName:'像素狮',
                    skill:'web前端,UI'

                }
            },
            components:{
                "pxs":pxs
            }

        })
    </script>
</body>
</html>